<style>
    #baseArea-edit {
        padding: 20px 20px 25px 0;
    }
    #baseArea-edit .button-css {
        /*margin-left: 10px;*/
        margin-top: 2px;
    }


</style>
<div class="layui-fluid" id="baseArea-edit">
    <form class="layui-form" action="" lay-filter="baseArea-edit-form">

        <div class="layui-form-item febs-hide">
            <div class="layui-row">
                <div class="layui-col-sm6">
                    <label class="layui-form-label febs-form-item-require">区域ID：</label>
                    <div class="layui-input-block">
                        <input type="text" name="areaId" class="layui-input">
                    </div>
                </div>

            </div>
        </div>
        <div class="layui-form-item  febs-hide">
            <div class="layui-row">
                <div class="layui-col-sm6">
                    <label class="layui-form-label febs-form-item-require">公司ID：</label>
                    <div class="layui-input-block">
                        <input type="text" name="tenantId" autocomplete="off" class="layui-input"
                               maxlength="32">
                    </div>
                </div>

            </div>

        </div>
        <div class="layui-form-item">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <label class="layui-form-label febs-form-item-require">区域名称：</label>
                    <div class="layui-input-block">
                        <input type="text" name="areaName" class="layui-input"
                               maxlength="90" lay-verify="required" placeholder="请输入区域名称">
                    </div>
                </div>

            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-row">
                <div class="layui-col-md6">
                    <label class="layui-form-label febs-form-item-require">区域类型：</label>
                    <div class="layui-input-block">
                        <select name="areaType" id="areaType" lay-search="">
                        </select>
                    </div>
                </div>

                <div class="layui-col-md6">
                    <label class="layui-form-label febs-form-item-require">区域排序：</label>
                    <div class="layui-input-block">
                        <input type="number" name="sort" lay-affix="number" lay-precision="0" class="layui-input"
                               value="1"
                               lay-verify="required" min="1">
                    </div>
                </div>

            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-row">
                <div class="layui-col-md6">
                    <label class="layui-form-label febs-form-item-require">位置信息：</label>
                    <input type="hidden" name="areaCoordinate" autocomplete="off" class="layui-input">
                    <div id="location" class="layui-input-block" style="display: flex;align-items: center;"
                         shiro:hasPermission="baseArea:edit">
                    </div>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-row">
                <div class="layui-col-md6">
                    <label class="layui-form-label febs-form-item-require">区域状态：</label>
                    <div class="layui-input-block">
                        <input type="checkbox" name="status" lay-skin="switch" lay-text="启用|禁用">
                    </div>
                </div>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <label class="layui-form-label febs-form-item-require">备注：</label>
                    <div class="layui-input-block">
                        <textarea name="remark" class="layui-textarea" maxlength="900" placeholder="请输入备注"></textarea>
                    </div>
                </div>
            </div>
        </div>


        <div class="layui-form-item febs-hide">
            <button class="layui-btn" lay-submit="" lay-filter="baseArea-edit-form-submit" id="submit"></button>
            <button type="reset" class="layui-btn" id="reset"></button>
        </div>
    </form>
</div>
<script data-th-inline="javascript">
    var baseAreaData = [[${baseArea}]];
</script>
<script th:src="@{/febs/js/base/baseArea/baseAreaEdit.js(v=1)}"></script>